﻿package org.cshoo.sys.data.entity;

import java.io.Serializable;
import java.util.Set;

/**
 * 用户 实体类
 * @author 杨翼
 * 2012年10月7日 杨翼 创建
 */
public class User implements Serializable{
	/**
	 * 用户标识
	 */
	private Long id;
	/**
	 * 用户姓名
	 */
	private String name;
	/**
	 * 登录名
	 */
	private String userName;
	/**
	 * 密码
	 */
	private String password;
	/**
	 * 性别
	 */
	private String sex;
	/**
	 * 生日
	 */
	private String birthday;
	/**
	 * 住址
	 */
	private String address;
	/**
	 * 电子邮件
	 */
	private String email;
	/**
	 * 固定电话
	 */
	private String telephone;
	/**
	 * 手机
	 */
	private String mobile;
	/**
	 * 身份证号
	 */
	private String identificationCard;
	
	/**
	 * 激活状态：可以自定义规则比如：未激活，激活，可用，禁用，离职，等等
	 */
	private String enabled;
	/**
	 * 组织机构
	 */
	private Organization organization;
	
	/**
	 * 角色set，一个用户可能包含多个角色
	 */
	private Set<Role> roleSet;
	
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getBirthday() {
		return birthday;
	}
	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getTelephone() {
		return telephone;
	}
	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public Organization getOrganization() {
		return organization;
	}
	public void setOrganization(Organization organization) {
		this.organization = organization;
	}
	public String getIdentificationCard() {
		return identificationCard;
	}
	public void setIdentificationCard(String identificationCard) {
		this.identificationCard = identificationCard;
	}
	public Set<Role> getRoleSet() {
		return roleSet;
	}
	public void setRoleSet(Set<Role> roleSet) {
		this.roleSet = roleSet;
	}
	public String getEnabled() {
		return enabled;
	}
	public void setEnabled(String enabled) {
		this.enabled = enabled;
	}

}
